from rest_framework import serializers
from cashier.models import *


class CashierBankSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierBank
        exclude = ('create_time', 'update_time')


class CashierStockSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierStock
        exclude = ('create_time', 'update_time')


class ListCashierStockSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierStock
        exclude = ('create_time', 'update_time')
        depth = 1


class CashierBusinessSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierBusiness
        exclude = ('create_time', 'update_time')


class ListCashierBusinessSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierBusiness
        exclude = ('create_time', 'update_time')
        depth = 1


class CashierLoanSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierLoan
        exclude = ('create_time', 'update_time',)


class ListCashierLoanSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierLoan
        exclude = ('create_time', 'update_time',)
        depth = 1


class ExpiryTimeControlSerializer(serializers.ModelSerializer):
    class Meta:
        model = ExpiryTimeControl
        exclude = ('create_time', 'update_time')


class CashierCompanySerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierCompany
        exclude = ('create_time', 'update_time')


class ListCashierCompanySerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierCompany
        exclude = ('create_time', 'update_time')
        depth = 1


class CashierBankLoanDetailsSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierBankLoanDetails
        exclude = ('create_time', 'update_time')


class ListCashierBankLoanDetailsSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierBankLoanDetails
        exclude = ('create_time', 'update_time')
        depth = 1


class CashierCommercialLoanDetailsSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierCommercialLoanDetails
        exclude = ('create_time', 'update_time')


class ListCashierCommercialLoanDetailsSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierCommercialLoanDetails
        exclude = ('create_time', 'update_time')
        depth = 1


class CashierContractSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierContract
        exclude = ('create_time', 'update_time')


class ListCashierContractSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierContract
        exclude = ('create_time', 'update_time')
        depth = 1


class CashierLoanDetailsSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierLoanDetails
        exclude = ('create_time', 'update_time')


class ListCashierLoanDetailsSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierLoanDetails
        exclude = ('create_time', 'update_time')
        depth = 1


class CashierCommercialRemitDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierCommercialRemitDetail
        exclude = ('create_time', 'update_time')


class ListCashierCommercialRemitDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = CashierCommercialRemitDetail
        exclude = ('create_time', 'update_time')
        depth = 1
